package fr.lelouet.test

class GroovyExecution {
	
	static main(args) {
		def proc = ["echo", "a", "b"].execute()
		proc.waitFor()
		println("stdout : "+proc.in.text)
		println("stderr : "+proc.err.text)
		println("return : "+proc.exitValue())
		
		def x = {Object[] arg -> println "method called with $arg"} as X
		x.f()
		x.g(1)
		x.h("hello",2)
	}
}

public interface X {
	void f();
	void g(int n);
	void h(String s, int n);
}
